local engine_includedirs = {
           'easy2d',
	   'deps/openal/include',
	   'deps/glew/include',
	   'deps/zlib/include',
	   'deps/freetype/include',
	   'deps/pthread/include',
        }
local engine_libdirs = {
            'deps/lib/win32',
        }

local framework_includedirs = {
		'deps/pthread/include',
		'easy2d',
		'easygame',
        }
local framework_libdirs = {
		'deps/lib/win32',
		'easy2d/lib',
        }


local easygui_includedirs = {
		'deps/pthread/include',
		'deps/freetype/include',
		'easy2d',
		'easygui/mygui/include',
		'easygui/render/include',
		'easygui/common/include',
        }
local easygui_libdirs = {
		'deps/lib/win32',
		'easy2d/lib',
        }

	
--game engine project
project 'easy2d'
	location( builddir )
    kind 'StaticLib'
	targetdir 'easy2d/lib'
    files {'easy2d/engine/*.*', 'easy2d/engine/win32/**.*'}
	files {'easy2d/input/*.h', 'easy2d/input/impl/**.*'}
	files {'easy2d/audio/*.h', 'easy2d/audio/openal/**.*', 'easy2d/audio/decoder/**.*'}
	files {'easy2d/platform/*.h', 'easy2d/platform/win32/**.*'}
	files {'easy2d/video/*.h', 'easy2d/video/gles2/**.*'}
	files {'easy2d/math/**.*',}
	files {'easy2d/file/**.*',}
	files {'easy2d/font/**.*',}
	files {'easy2d/debugger/**.*',}
	files {'easy2d/logger/**.*',}
	files {'easy2d/units/**.*',}
	files {'easy2d/thread/**.*',}
	files {'easy2d/threadtask/**.*',}
	files {'easy2d/loader/**.*',}
	files {'easy2d/image/**.*',}
	files {'easy2d/particle/**.*',}
	files {'easy2d/scheduler/**.*',}
	files {'easy2d/socket/**.*',}
	files {'easy2d/pugixml/**.*',}
	files {'easy2d/manager/**.*',}
	files {'easy2d/*.h',}
	excludes  { 'easy2d/**.txt' }
	defines {'GLEW_STATIC'}
	includedirs { engine_includedirs }
    libdirs { engine_libdirs }
	links { 'opengl32', 'glew32s', 'zlib', 'freetype2MT', 'OpenAL32', 'pthread' }
	vpaths {
		['./*'] = {'easy2d/**.*'},
	}
	configuration 'Debug'
        targetsuffix '_d'


--game framework project
project 'easygame'
	location( builddir )
	kind 'StaticLib'
	targetdir 'easygame/lib'
	includedirs { framework_includedirs }
    libdirs { framework_libdirs }
	links { 'easy2d' }
	files { 'easygame/**.*' }
	excludes  { 'easygame/**.txt', 'easygame/**.mk', 'easygame/lib/**.*' }
	vpaths 
	{
		['./*'] = {'easygame/**.*'},
	}
	configuration 'Debug'
        targetsuffix '_d'



--easygui project
project 'easygui'
	location( builddir )
	kind 'StaticLib'
	targetdir 'easygui/lib'
	includedirs { easygui_includedirs }
	defines {'MYGUI_USE_FREETYPE','MYGUI_STATIC','_WIN32'}
    libdirs { easygui_libdirs }
	links { 'easy2d' }
	files { 'easygui/**.*' }
	excludes  { 'easygui/**.txt', 'easygui/**.mk', 'easygui/lib/**.*' }
	vpaths 
	{
		['./*'] = {'easygui/**.*'},
	}
	configuration 'Debug'
        targetsuffix '_d'
